<%--
    Document   : loginheader
    Created on : Feb 8, 2012, 11:37:52 PM
    Author     : Anthony Ferrari
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="logged" scope="session" value="loggedIn"/>
<c:choose>
    <c:when test="${sessionScope.loggedIn}">
        <div class="header">
            <div class="logo"><a href="UserHome"><img src="images/logo.jpg" /></a></div>
            <div class="right_header">Welcome ${sessionScope["firstName"]} ${sessionScope["lastName"]} | <a href="Logout">Logout</a></div>
        </div> <!-- end header -->
    </c:when>
        <c:otherwise>
            <div class="header">
                <div class="logo"><a href="Home"><img src="images/logo.jpg" /></a></div>
                <div class="right_header"><a href="ShowLogin">Login</a></div>
            </div> <!-- end header -->
        </c:otherwise>

</c:choose>